package com.kgc.travel.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LawPageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LawPageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPageIdIsNull() {
            addCriterion("page_id is null");
            return (Criteria) this;
        }

        public Criteria andPageIdIsNotNull() {
            addCriterion("page_id is not null");
            return (Criteria) this;
        }

        public Criteria andPageIdEqualTo(Integer value) {
            addCriterion("page_id =", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotEqualTo(Integer value) {
            addCriterion("page_id <>", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThan(Integer value) {
            addCriterion("page_id >", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("page_id >=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThan(Integer value) {
            addCriterion("page_id <", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdLessThanOrEqualTo(Integer value) {
            addCriterion("page_id <=", value, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdIn(List<Integer> values) {
            addCriterion("page_id in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotIn(List<Integer> values) {
            addCriterion("page_id not in", values, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdBetween(Integer value1, Integer value2) {
            addCriterion("page_id between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andPageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("page_id not between", value1, value2, "pageId");
            return (Criteria) this;
        }

        public Criteria andLawIdIsNull() {
            addCriterion("law_id is null");
            return (Criteria) this;
        }

        public Criteria andLawIdIsNotNull() {
            addCriterion("law_id is not null");
            return (Criteria) this;
        }

        public Criteria andLawIdEqualTo(Integer value) {
            addCriterion("law_id =", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotEqualTo(Integer value) {
            addCriterion("law_id <>", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdGreaterThan(Integer value) {
            addCriterion("law_id >", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("law_id >=", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdLessThan(Integer value) {
            addCriterion("law_id <", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdLessThanOrEqualTo(Integer value) {
            addCriterion("law_id <=", value, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdIn(List<Integer> values) {
            addCriterion("law_id in", values, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotIn(List<Integer> values) {
            addCriterion("law_id not in", values, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdBetween(Integer value1, Integer value2) {
            addCriterion("law_id between", value1, value2, "lawId");
            return (Criteria) this;
        }

        public Criteria andLawIdNotBetween(Integer value1, Integer value2) {
            addCriterion("law_id not between", value1, value2, "lawId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdIsNull() {
            addCriterion("page_parent_id is null");
            return (Criteria) this;
        }

        public Criteria andPageParentIdIsNotNull() {
            addCriterion("page_parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andPageParentIdEqualTo(Integer value) {
            addCriterion("page_parent_id =", value, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdNotEqualTo(Integer value) {
            addCriterion("page_parent_id <>", value, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdGreaterThan(Integer value) {
            addCriterion("page_parent_id >", value, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("page_parent_id >=", value, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdLessThan(Integer value) {
            addCriterion("page_parent_id <", value, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("page_parent_id <=", value, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdIn(List<Integer> values) {
            addCriterion("page_parent_id in", values, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdNotIn(List<Integer> values) {
            addCriterion("page_parent_id not in", values, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdBetween(Integer value1, Integer value2) {
            addCriterion("page_parent_id between", value1, value2, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("page_parent_id not between", value1, value2, "pageParentId");
            return (Criteria) this;
        }

        public Criteria andPageNameIsNull() {
            addCriterion("page_name is null");
            return (Criteria) this;
        }

        public Criteria andPageNameIsNotNull() {
            addCriterion("page_name is not null");
            return (Criteria) this;
        }

        public Criteria andPageNameEqualTo(String value) {
            addCriterion("page_name =", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameNotEqualTo(String value) {
            addCriterion("page_name <>", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameGreaterThan(String value) {
            addCriterion("page_name >", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameGreaterThanOrEqualTo(String value) {
            addCriterion("page_name >=", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameLessThan(String value) {
            addCriterion("page_name <", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameLessThanOrEqualTo(String value) {
            addCriterion("page_name <=", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameLike(String value) {
            addCriterion("page_name like", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameNotLike(String value) {
            addCriterion("page_name not like", value, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameIn(List<String> values) {
            addCriterion("page_name in", values, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameNotIn(List<String> values) {
            addCriterion("page_name not in", values, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameBetween(String value1, String value2) {
            addCriterion("page_name between", value1, value2, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageNameNotBetween(String value1, String value2) {
            addCriterion("page_name not between", value1, value2, "pageName");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateIsNull() {
            addCriterion("page_gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateIsNotNull() {
            addCriterion("page_gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateEqualTo(Date value) {
            addCriterion("page_gmt_create =", value, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateNotEqualTo(Date value) {
            addCriterion("page_gmt_create <>", value, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateGreaterThan(Date value) {
            addCriterion("page_gmt_create >", value, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("page_gmt_create >=", value, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateLessThan(Date value) {
            addCriterion("page_gmt_create <", value, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("page_gmt_create <=", value, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateIn(List<Date> values) {
            addCriterion("page_gmt_create in", values, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateNotIn(List<Date> values) {
            addCriterion("page_gmt_create not in", values, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateBetween(Date value1, Date value2) {
            addCriterion("page_gmt_create between", value1, value2, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("page_gmt_create not between", value1, value2, "pageGmtCreate");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedIsNull() {
            addCriterion("page_gmt_modified is null");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedIsNotNull() {
            addCriterion("page_gmt_modified is not null");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedEqualTo(Date value) {
            addCriterion("page_gmt_modified =", value, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedNotEqualTo(Date value) {
            addCriterion("page_gmt_modified <>", value, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedGreaterThan(Date value) {
            addCriterion("page_gmt_modified >", value, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedGreaterThanOrEqualTo(Date value) {
            addCriterion("page_gmt_modified >=", value, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedLessThan(Date value) {
            addCriterion("page_gmt_modified <", value, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedLessThanOrEqualTo(Date value) {
            addCriterion("page_gmt_modified <=", value, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedIn(List<Date> values) {
            addCriterion("page_gmt_modified in", values, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedNotIn(List<Date> values) {
            addCriterion("page_gmt_modified not in", values, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedBetween(Date value1, Date value2) {
            addCriterion("page_gmt_modified between", value1, value2, "pageGmtModified");
            return (Criteria) this;
        }

        public Criteria andPageGmtModifiedNotBetween(Date value1, Date value2) {
            addCriterion("page_gmt_modified not between", value1, value2, "pageGmtModified");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}